# $Id: PKGBUILD 64685 2012-02-17 18:33:53Z bluewind $
# Maintainer:
# Contributor: Andrea Scarpino <andrea@archlinux.org>
# Contributor: dorphell <dorphell@archlinux.org>

pkgname=wvdial
pkgver=1.61
pkgrel=4
pkgdesc="A dialer program to connect to the Internet"
url="http://alumnit.ca/wiki/index.php?page=WvDial"
arch=('i686' 'x86_64')
license=('custom')
depends=('wvstreams' 'ppp' 'gcc-libs')
makedepends=('lockdev')
options=('!makeflags' '!buildflags')
source=("http://wvstreams.googlecode.com/files/${pkgname}-${pkgver}.tar.gz")
md5sums=('acd3b2050c9b65fff2aecda6576ee7bc')

build() {
  cd "${srcdir}"/${pkgname}-${pkgver}
  ./configure
  make LOCKDEV="-llockdev"
}

package() {
  cd "${srcdir}"/${pkgname}-${pkgver}
  make prefix="${pkgdir}"/usr PPPDIR="${pkgdir}"/etc/ppp/peers install

  install -Dm644 COPYING.LIB "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE
}
